<?php

namespace dk\widget;
use wm\helper\AssetCache;

class CssCache extends Css {
    function printFiles($files, $chkHead = true){
        if($chkHead && $this->addToHead($files)){
            return '';
        }

        if(count($files) < 2){
            return parent::printFiles($files, false);
        }

        $file = AssetCache::getResouce('css', $files);
        return parent::printFiles([$file]);
    }
}